package com.overoid.diary;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.overoid.diary.ui.DayActivity;
import com.overoid.diary.ui.MemoActivity;
import com.overoid.diary.ui.common.ActivityImpl;


public class HomeActivity extends ActivityImpl {
	public final static String debugTag = "CH10";
    
    public static final int Home = 1;
	public static final int Days = 2;
	public static final int Day = 3;
	public static final int Memo = 4;
	public static final int Setting = 5;
	/**
	 * @see android.app.Activity#onCreate(Bundle)
	 */
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.home);
		
		/*
		actions.put(menu[0], new Intent(this,CalendarActivity.class));
		actions.put(menu[1], new Intent(this,DaysActivity.class));   
		
		setListAdapter(new ArrayAdapter<String>(this,
				android.R.layout.simple_list_item_1,
				menu));
		
		Log.d("HomeActivity.debugTag", getResources().getString(R.string.commm_home)) ;
		
		*/
		// TODO Put your code here
		
		
		final Button dayBtn =  (Button)findViewById(R.id.testday);
		dayBtn.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				
				Intent in = new Intent(HomeActivity.this,DayActivity.class);
				startActivity(in);
				
			}
		});
		final Button memoBtn =  (Button)findViewById(R.id.memo);
		memoBtn.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent in = new Intent(HomeActivity.this, MemoActivity.class);
				startActivity(in);
			}
		});
		
		final Button mainBtn =  (Button)findViewById(R.id.main);
		mainBtn.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent in = new Intent(HomeActivity.this, MainActivity.class);
				startActivity(in);
			}
		});
	}
}
